<!doctype html><html xmlns="http://www.w3.org/1999/xhtml" id="html">
    <head>
        <title></title>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <base href="<?= base_url(1); ?>" />
        <link type="text/css" href="css/main.css?v=<?= $config['version'] ?>" rel="stylesheet" />
    </head>
    <body>
        <?php include(VIEWPATH . 'common/main_header.php'); ?>
        <form action="" method="POST" id="rowForm">
            <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tablegrid tableedit">
                <tr>
                    <td><?= translate('TITLE') ?>:</td>
                    <td><input type="text" name="row[title]" id="title" size="25" value="" /></td>
                </tr>
                <tr>
                    <td><?= translate('CONTENT') ?>:</td>
                    <td><textarea name="row[content]" id="content" cols="50" rows="5"></textarea><a href="javascript:;" class="help" module="notice"><?= translate('README') ?></a></td>
                </tr>
                <tr>
                    <td><?= translate('COLOR') ?>:</td>
                    <td><input type="text" name="row[color]" id="color" size="25" value="" class="colorpicker" /></td>
                </tr>
                <tr>
                    <td><?= translate('AUTHOR') ?>:</td>
                    <td><input type="text" name="row[author]" id="author" size="25" value="" /></td>
                </tr>
                <tr>
                    <td><?= translate('VERSION') ?>:</td>
                    <td>
                        <textarea name="row[version]" id="version" cols="50" rows="5"></textarea><a href="javascript:;" class="help" module="version"><?= translate('README') ?></a>
                    </td>
                </tr>
                <tr>
                    <td><?= translate('STARTTIME') ?>:</td>
                    <td><input type="text" name="row[starttime]" id="starttime" size="25" value="0" class="datepicker" showtime="true" /></td>
                </tr>
                <tr>
                    <td><?= translate('EXPIRETIME') ?>:</td>
                    <td><input type="text" name="row[expiretime]" id="expiretime" size="25" value="0" class="datepicker" showtime="true" /></td>
                </tr>
                <tr>
                    <td><?= translate('STATUS') ?>:</td>
                    <td><input type="radio" name="row[state]" value="1" checked /> <?= translate('NORMAL') ?> <input type="radio" name="row[state]" value="0" /> <?= translate('HIDE') ?></td>
                </tr>
                <tr>
                    <tr><td></td>
                        <td>
                            <input type="submit" value="<?= translate('SUBMIT') ?>" id="submit"/> <input type="reset" value="<?= translate('RESET') ?>" id="reset"/>
                        </td>
                    </tr>
            </table>
        </form>
        <script type="text/javascript">
            SG.init("core.form", function() {
                $.formValidator.initConfig({formid: "#rowForm", submitonce: true});
                $("#title").formValidator({empty: false, onshow: '<?= translate('C_NOT_EMPTY') ?>'}).inputValidator({min: 1, onerrormin: '<?= translate('C_NOT_EMPTY') ?>'});
                $("#content").formValidator({empty: false, onshow: '<?= translate('C_NOT_EMPTY') ?>'}).inputValidator({min: 1, onerrormin: '<?= translate('C_NOT_EMPTY') ?>'});
                $("#author").formValidator({empty: true, onshow: '<?= translate('C_NOT_EMPTY') ?>'}).inputValidator({min: 1, onerrormin: '<?= translate('C_NOT_EMPTY') ?>'});
                $("#version").formValidator({empty: true, onshow: '<?= translate('C_NOT_EMPTY') ?>'}).inputValidator({min: 1, onerrormin: '<?= translate('C_NOT_EMPTY') ?>'});
                $("#starttime").formValidator({empty: false, onshow: '<?= translate('C_NOT_EMPTY') ?>'});
                $("#expiretime").formValidator({empty: false, onshow: '<?= translate('EXPIRETIME') ?>'});
            });
        </script>
    </body>
</html>